<?php

      include "includes/config.inc.php";  
      $TIME = mktime(date("H")+$SETTINGS['timecorrection'],date("i"),date("s"),date("m"), date("d"),date("Y"));

$NOW = date("YmdHis",$TIME);

$LAST_FIVE_MINUTES = date("YmdHis", mktime(substr($NOW, 8, 2), substr($NOW, 10, 2), substr($NOW, 12, 2) - 300 , substr($NOW, 4, 2), substr($NOW, 6, 2), substr($NOW, 0, 4)));


/*
  
        $auction_id = 1005;
        
$id = 1;
echo $NOW;
  echo "<BR>";
echo $LAST_FIVE_MINUTES;


 $query = "SELECT bidder,auction,bidwhen FROM PHPAUCTIONXL_bids2 WHERE auction=$auction_id AND bidwhen>$LAST_FIVE_MINUTES GROUP BY bidder"; 

$result = mysql_query($query) or die(mysql_error());

while($row = mysql_fetch_array($result)){
     $counter++;
              $id2=$row['auction'];

    $query435 = mysql_fetch_array(mysql_query("SELECT title FROM PHPAUCTIONXL_auctions WHERE id=$id2"));
  

 $auctiontitle = stripslashes($query435['title']);



   print "$counter) AuctionID#$id2 - <a href=\"userbidhistoryauctiondetail.php?user_id=$id&auction_id=$id2\">$auctiontitle</A><BR>";

//	echo $row['bidder']. " - ".$row['auction'];
	//echo "<br />";
	
	
	
	  
	
}    
    echo "<BR>";
    echo $counter; 
    
                         */
    
              $id2 = 2;
               $auction_id = 1007;
    $query12 = "INSERT INTO PHPAUCTIONXL_auction_seats VALUES";

$query12 .= "(NULL";
$query12 .= ",";
$query12 .= $id2;
$query12 .= ",";
$query12 .= $auction_id;
$query12 .= ",";
$query12 .= 1;
$query12 .= ",";
$query12 .= 0;
$query12 .= ")";

mysql_query($query12);

?>
